import Vue from 'vue'
import Router from 'vue-router'
// const HelloWorld = resolve => require(['@/components/HelloWorld'], resolve)
const SignUp = resolve => require(['@/pages/SignUp'], resolve)
const Question = resolve => require(['@/pages/Question'], resolve)
const SignUpDetail = resolve => require(['@/pages/SignUpDetail'], resolve)
const RankList = resolve => require(['@/pages/RankList'], resolve)
const AnswerRecord = resolve => require(['@/pages/AnswerRecord'], resolve)
const HistoryRankList = resolve => require(['@/pages/HistoryRankList'], resolve)
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/signup',
      name: 'SignUp',
      component: SignUp
    },
    {
      path: '/question',
      name: 'Question',
      component: Question
    },
    {
      path: '/signupdetail',
      name: 'SignUpDetail',
      component: SignUpDetail
    },
    {
      path: '/ranklist',
      name: 'RankList',
      component: RankList
    },
    {
      path: '/answerrecord',
      name: 'AnswerRecord',
      component: AnswerRecord
    },
    {
      path: '/historyranklist',
      name: 'HistoryRankList',
      component: HistoryRankList
    }
  ]
})
